//
//  SuggestionViewController.m
//  ioshuanwu
//
//  Created by 殷殷明静 on 16/9/20.
//  Copyright © 2016年 幻音. All rights reserved.
//

#import "SuggestionViewController.h"

@interface SuggestionViewController ()
@property (nonatomic, strong) UIButton *backBtn;
@end

@implementation SuggestionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNavigationLeftButton];
    self.view.backgroundColor = [UIColor whiteColor];
    
}


- (void)initNavigationLeftButton {
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 25)];
    ;
    label.text = @"意见反馈";
    label.font = [UIFont systemFontOfSize:13];
    self.navigationItem.titleView = label;
    _backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:_backBtn];
    _backBtn.frame = CGRectMake(20, 20, 15, 15);
    [_backBtn setBackgroundImage:[UIImage imageNamed:@"Icon_jiantou"] forState:0];
    [_backBtn addTarget:self action:@selector(backToMyViewController) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:_backBtn];
}

// 返回之前页面
- (void)backToMyViewController {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
